﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001209 RID: 4617
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartBoxingClubBattleScRsp : IMessage<StartBoxingClubBattleScRsp>, IMessage, IEquatable<StartBoxingClubBattleScRsp>, IDeepCloneable<StartBoxingClubBattleScRsp>, IBufferMessage
	{
		// Token: 0x17003A77 RID: 14967
		// (get) Token: 0x0600CEDD RID: 52957 RVA: 0x0022CFD7 File Offset: 0x0022B1D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartBoxingClubBattleScRsp> Parser
		{
			get
			{
				return StartBoxingClubBattleScRsp._parser;
			}
		}

		// Token: 0x17003A78 RID: 14968
		// (get) Token: 0x0600CEDE RID: 52958 RVA: 0x0022CFDE File Offset: 0x0022B1DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartBoxingClubBattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A79 RID: 14969
		// (get) Token: 0x0600CEDF RID: 52959 RVA: 0x0022CFF0 File Offset: 0x0022B1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartBoxingClubBattleScRsp.Descriptor;
			}
		}

		// Token: 0x0600CEE0 RID: 52960 RVA: 0x0022CFF7 File Offset: 0x0022B1F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartBoxingClubBattleScRsp()
		{
		}

		// Token: 0x0600CEE1 RID: 52961 RVA: 0x0022D000 File Offset: 0x0022B200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartBoxingClubBattleScRsp(StartBoxingClubBattleScRsp other) : this()
		{
			this.challengeId_ = other.challengeId_;
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CEE2 RID: 52962 RVA: 0x0022D058 File Offset: 0x0022B258
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartBoxingClubBattleScRsp Clone()
		{
			return new StartBoxingClubBattleScRsp(this);
		}

		// Token: 0x17003A7A RID: 14970
		// (get) Token: 0x0600CEE3 RID: 52963 RVA: 0x0022D060 File Offset: 0x0022B260
		// (set) Token: 0x0600CEE4 RID: 52964 RVA: 0x0022D068 File Offset: 0x0022B268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x17003A7B RID: 14971
		// (get) Token: 0x0600CEE5 RID: 52965 RVA: 0x0022D071 File Offset: 0x0022B271
		// (set) Token: 0x0600CEE6 RID: 52966 RVA: 0x0022D079 File Offset: 0x0022B279
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003A7C RID: 14972
		// (get) Token: 0x0600CEE7 RID: 52967 RVA: 0x0022D082 File Offset: 0x0022B282
		// (set) Token: 0x0600CEE8 RID: 52968 RVA: 0x0022D08A File Offset: 0x0022B28A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x0600CEE9 RID: 52969 RVA: 0x0022D093 File Offset: 0x0022B293
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartBoxingClubBattleScRsp);
		}

		// Token: 0x0600CEEA RID: 52970 RVA: 0x0022D0A4 File Offset: 0x0022B2A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartBoxingClubBattleScRsp other)
		{
			return other != null && (other == this || (this.ChallengeId == other.ChallengeId && this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CEEB RID: 52971 RVA: 0x0022D104 File Offset: 0x0022B304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CEEC RID: 52972 RVA: 0x0022D172 File Offset: 0x0022B372
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CEED RID: 52973 RVA: 0x0022D17A File Offset: 0x0022B37A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CEEE RID: 52974 RVA: 0x0022D184 File Offset: 0x0022B384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CEEF RID: 52975 RVA: 0x0022D1FC File Offset: 0x0022B3FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CEF0 RID: 52976 RVA: 0x0022D26C File Offset: 0x0022B46C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartBoxingClubBattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CEF1 RID: 52977 RVA: 0x0022D2E8 File Offset: 0x0022B4E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CEF2 RID: 52978 RVA: 0x0022D2F4 File Offset: 0x0022B4F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 26U)
					{
						if (num != 72U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ChallengeId = input.ReadUInt32();
						}
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040052E9 RID: 21225
		private static readonly MessageParser<StartBoxingClubBattleScRsp> _parser = new MessageParser<StartBoxingClubBattleScRsp>(() => new StartBoxingClubBattleScRsp());

		// Token: 0x040052EA RID: 21226
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052EB RID: 21227
		public const int ChallengeIdFieldNumber = 9;

		// Token: 0x040052EC RID: 21228
		private uint challengeId_;

		// Token: 0x040052ED RID: 21229
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040052EE RID: 21230
		private uint retcode_;

		// Token: 0x040052EF RID: 21231
		public const int BattleInfoFieldNumber = 3;

		// Token: 0x040052F0 RID: 21232
		private SceneBattleInfo battleInfo_;
	}
}
